﻿#ifndef DATARECORD_MCUCODEC_H
#define DATARECORD_MCUCODEC_H

#include <qobject.h>
#include <qtimer.h>

class TransmitRecord : public QObject
{
  Q_OBJECT
private://property
  uint deviceId=0;
  uint userId=0;
  ushort msgId=0;
  QByteArray data;
  QTimer timer;
public:
  explicit TransmitRecord();
  TransmitRecord(TransmitRecord const& dataRecord_MCUCodec);
  virtual ~TransmitRecord();
  TransmitRecord& operator=(TransmitRecord const& dataRecord_MCUCodec);
signals:
public://geter and seter
  uint getDeviceId()const;
  TransmitRecord* setDeviceId(uint deviceId);
  uint getUserId()const;
  TransmitRecord* setUserId(uint userId);
  ushort getMsgId()const;
  TransmitRecord* setMsgId(ushort msgId);
  QByteArray getData();
  TransmitRecord* setData(QByteArray const& data);
  QTimer* getTimer();
};

#endif // DATARECORD_MCUCODEC_H
